<?php $this->pageTitle = $model->title;$this->pageKeywords = $model->title?>
<?php $this->widget('application.widgets.Highlighter');?>
<?php 
$this->breadcrumbs=array(
    $model->category->name => array('index', 'cid' => $model->category->id),
	$model->title,
);
?>
<div class="note">
	<h3>
	<?php echo CHtml::encode($model->title); ?>
	</h3>
	<div class="info">
	<span class="date"><?php echo Yii::app()->format->datetime(strtotime($model->add_time)); ?></span>
	</div>
	<div class="content"><?php echo $model->getViewContent(); ?></div>
</div>

<div id="comment">
	<?php if($model->commentCount):?>
		<?php $this->renderPartial('_comments', array(
		    'post' => $model,
		))?>
	<?php endif;?>
	
	
	<?php $this->renderPartial('/comment/_form', array(
	    'model' => $comment
	))?>
</div>
<script class="javascript"> 
    SyntaxHighlighter.all();
</script> 